.mall-item-background {
    width: 100%;
    position: relative;
}

.mall-item-background .back {
    position: fixed;
    left: 0.7em;
    top: 0.7em;
    cursor: pointer;
    background-color: #646566;
    border-radius: 50%;
    padding: 0.5em;
    z-index: 2;
}

.mall-item-background .back svg {
    font-size: 2em;
    color: white;
}

.mall-item-container {
    width: 100%;
    min-height: calc(100vh - 2em);
    display: flex;
    max-width: 1400px;
    background-color: white;
}

.mall-item-container .imgs .img-container {
    background-color: var(--light-grey);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mall-item-container .imgs .img-container img{
    max-width: 100%;
    max-height: 100%;
}

.mall-item-container .info {
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 1em;
}

.mall-item-container .info .title {
    font-size: 2em;
    font-weight: bolder;
}

.mall-item-container .info .title span {
    font-size: 0.7em;
    background-color: #4b8dff;
    color: white;
    padding: 0.2em 0.5em;
    margin-right: 0.2em;
    border-radius: 0.5em;
}

.mall-item-container .info .cur-option {
    border-radius: 1em;
    padding: 5px;
    gap: 5px;
    display: flex;
    background: url('/src/components/purchase/red.jpg') no-repeat;
    background-size:100% 100%;
    font-weight: bolder;
    position: sticky;
    top: 1em;
    bottom: 5em;
    z-index: 1;
}

.mall-item-container .info .cur-option .left {
    width: 7em;
    height: 7em;
    border-radius: 0.7em;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mall-item-container .info .cur-option .left img {
    max-width: 100%;
    max-height: 100%;
}

.mall-item-container .info .cur-option .right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
}

.mall-item-container .info .cur-option .right .up {
    flex-grow: 1;
    font-size: 1.5em;
    color: white;
    padding: 0.3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mall-item-container .info .cur-option .right .down {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    background-color: white;
    border-radius: 0.7em;
    padding: 0.5em;
    box-sizing: border-box;
    color: orangered;
    font-size: 1.5em;
}

.mall-item-container .info .options-container {
    display: flex;
    gap: 1em;
}

.mall-item-container .info .options-container label {
    font-size: 1.5em;
    font-weight: bolder;
}

.mall-item-container .info .options-container .options {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.mall-item-container .info .options-container .options .option {
    background-color: var(--grey);
    padding: 0.5em;
    border-radius: 0.5em;
    cursor: pointer;
}

.mall-item-container .info .options-container .options .option.cur {
    outline: 1px red solid;
    background-color: var(--light-grey);
}

.mall-item-container .info .purchase-number {
    display: flex;
    align-items: center;
    gap: 1em;
}

.mall-item-container .info .purchase-number label {
    font-size: 1.5em;
    font-weight: bolder;
}

.mall-item-container .info .operations {
    display: flex;
    position: sticky;
    bottom: 1em;
    justify-content: space-between;
    border-radius: 1em;
    padding: 0.5em 1em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    font-weight: bolder;
    background-color: white;
    user-select: none;
}

.mall-item-container .info .operations .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #646566;
    padding: 0 1em;
    cursor: pointer;
}

.mall-item-container .info .operations .icon svg {
    font-size: 1.5em;
}

.mall-item-container .info .operations .btns {
    display: flex;
    border-radius: 5em;
    background: url('/src/components/purchase/red.jpg') no-repeat;
    background-size:100% 100%;
}

.mall-item-container .info .operations .btns div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    width: 7em;
    cursor: pointer;
    outline: none;
    color: white;
    padding: 0.5em 0;
}

.mall-item-container .info .operations .btns div:nth-child(1) {
    border-right: 1px solid white;
}

.mall-item-container .my-input-number input {
    width: 4em;
    text-align: center;
}

.mall-item-container .my-input-number .ant-input-number-group-addon {
    padding: 0;
    overflow: hidden;
}

.mall-item-container .my-input-number .ant-input-number-group-addon .btn {
    box-sizing: border-box;
    padding: 0.2em 0.5em;
    font-weight: bolder;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    background-color: var(--light-grey);
}

.mall-item-container .my-input-number .ant-input-number-group-addon .btn:hover {
    background-color: var(--dark-grey);
}

@media (orientation: landscape) {
    .mall-item-background {
        background-color: #e7e0da;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        padding: 1em;
    }

    .mall-item-container {
        border-radius: 1em;
        padding: 1em;
        box-sizing: border-box;
        gap: 2em;
    }

    .mall-item-container .imgs {
        width: 500px;
        border-radius: 1em;
        overflow: hidden;
        position: sticky;
        top: 1em;
        border: 2px solid var(--dark-grey);
    }
}

@media (orientation: portrait) {
    .mall-item-container {
        flex-direction: column;
    }

    .mall-item-container .imgs {
        width: 100%;
    }

    .mall-item-container .imgs .img-container {
        height: 300px;
    }
}